package cn.powerone.scm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 scm_inventory_check
 * 
 * @author PowerOne
 * @date 2025-07-20
 */
public class ScmInventoryCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 盘点主键 */
    private Long id;

    /** 库存ID */
    @Excel(name = "库存ID")
    private Long inventoryId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 库位ID */
    @Excel(name = "库位ID")
    private Long warehouseLocationId;

    /** 盘点数量 */
    @Excel(name = "盘点数量")
    private Long countedQuantity;

    /** 系统数量 */
    @Excel(name = "系统数量")
    private Long systemQuantity;

    /** 差异数量 */
    @Excel(name = "差异数量")
    private Long differenceQuantity;

    /** 盘点状态 */
    @Excel(name = "盘点状态")
    private Long status;

    /** 盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘点时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date countedAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    private Long updatedById;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setWarehouseLocationId(Long warehouseLocationId) 
    {
        this.warehouseLocationId = warehouseLocationId;
    }

    public Long getWarehouseLocationId() 
    {
        return warehouseLocationId;
    }
    public void setCountedQuantity(Long countedQuantity) 
    {
        this.countedQuantity = countedQuantity;
    }

    public Long getCountedQuantity() 
    {
        return countedQuantity;
    }
    public void setSystemQuantity(Long systemQuantity) 
    {
        this.systemQuantity = systemQuantity;
    }

    public Long getSystemQuantity() 
    {
        return systemQuantity;
    }
    public void setDifferenceQuantity(Long differenceQuantity) 
    {
        this.differenceQuantity = differenceQuantity;
    }

    public Long getDifferenceQuantity() 
    {
        return differenceQuantity;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCountedAt(Date countedAt) 
    {
        this.countedAt = countedAt;
    }

    public Date getCountedAt() 
    {
        return countedAt;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedById(Long updatedById) 
    {
        this.updatedById = updatedById;
    }

    public Long getUpdatedById() 
    {
        return updatedById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("inventoryId", getInventoryId())
            .append("productId", getProductId())
            .append("warehouseId", getWarehouseId())
            .append("warehouseLocationId", getWarehouseLocationId())
            .append("countedQuantity", getCountedQuantity())
            .append("systemQuantity", getSystemQuantity())
            .append("differenceQuantity", getDifferenceQuantity())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("countedAt", getCountedAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedById", getUpdatedById())
            .toString();
    }
}
